package com.cn.service;

import com.cn.entity.Message;
import com.cn.entity.User;
import com.cn.vo.userVo.Friend;
import com.cn.vo.userVo.Request;

import java.util.List;

public interface IUserService {

    public  boolean ManageLogin(String ManagerAdmin,String ManagerPassword);
    public List<User> showAll();//展示
    public List<Message> showAllMessage();
    public  boolean login(String UserName,String UserPassword);//登录

    public Boolean isSuspended(String userName);
    public void cancelSuspended(String userName);
    public void suspendUser(String userName);

    public void deleteUser(String admin);
    public  void register(User user);//注册
    public  void updateUser(User user);
    public List<Friend> showFriendById(String userName);

    public void deleteFriendByAdmin(String userName,String friendUsername);//删除好友
    public Object showUserById(String userName);//根据id查找账户信息

    public List<Request> showRequest(String receiveAdmin);

    public void sendRequest(String reqAdmin,String reqName,String recAdmin,String recName);

    public  void sendBeFriendRequest(int request_id,int receive_id);//发出好友请求

    public  void BeFriend(String recAdmin,String recName,String reqAdmin,String reqName);//成功成为互相的好友
    public  void refuseBeFriend(String recAdmin,String reqAdmin);//拒绝成为好友

    public void sendMassageForFriendById(Message message);//给好友发消息

   public  List<Message>showMassage(String receiver_admin);

   public void warningMessageForSystem(String receiver_admin);

   public List<Message> flexibleQuery(String message);

    public List<User> flexibleUser(String query);
    public List<Message>showMassageBySender(String sender_admin, String receiver_admin);


    public   void hasBeenRead(int receiver_id);
}
